<template>
  <div>
    <div class="am-form-group-out">
      <div class="am-form-group">
        <icon type="people"/>
        <input type="text" class="am-form-field" v-model="phone" placeholder="请输入您的常用手机号">
      </div>
        <div class="error_msg">{{errorMsg}}</div>

      <x-button action-type="button" class="login-btn" type="warn" @click.native="toForgetCode">获取验证码</x-button>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      phone: "13075860921",
      errorMsg:"手机号 已经有了"
    };
  },
  methods: {
    toForgetCode() {
      this.$router.push({ name: "forgetPasswordCode", query: { phone: this.phone,formView:"login" } });
    },
  }
};
</script>

<style scoped>
@import '../../assets/scss/login.scss';
.view-router {
  background: white;
}
.top_div {
  padding-top: 20%;
}
.top_div .vux-flexbox-item {
  text-align: center;
}
.error_msg{
  color: red;
  text-align: center;
  padding: 20px 0;
}
</style>
